<?php
	include(ROOTPATH .'class'. DS .'task.class.php');
	$page 				= getPage('page');
	$idCode				= getQuery('id');
	$id					= getId('id');
	$sql = 'SELECT * FROM `'. DB_PRE.'task` WHERE `id` = '. $id;	
	$show = $dbs -> select($sql);
	$show = $show[0];
	
	$sql = 'SELECT count(`id`) as `totals` FROM `'. DB_PRE.'task_attend` WHERE `task_id` = '. $id;	
	$total = $dbs -> select($sql);
	$total = $total[0]['totals'];
	
	
	$showUser = new users();
	$userInfo = $showUser -> getUser($show['user_id']);

	$task = new task();
	
	$hit = new hits();
	$hit -> add('task',$id);

?>